package org.ffmmx.ybb.repo;

import org.ffmmx.ybb.model.City;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.PagingAndSortingRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface CityRepo extends PagingAndSortingRepository<City, Long>,JpaSpecificationExecutor<City> {
    Page<City> findCitiesByCountryAndIdAndMapAndNameAndState(String country, Long id, String map, String name, String status, Pageable pageable);
}
